<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2021/11/22
  Time: 13:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <meta charset="utf-8">
    <title>$Title$</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
  </head>

  <body>
  <div class="layui-main">
    <br>
    <h2 style="font-size: 45px;text-align: center">欢迎${user.userName}!</h2>
    <br><br><br>
    <input type="button" class="layui-btn layui-btn-lg" id="pracBtn" value="做练习">
  </div>
  </body>

  <%-- 引入Jquery的JS文件 --%>
  <script type="text/javascript" src="js/jquery-3.4.1.js"></script>
  <%-- 此处使用到jQuery技术栈 --%>
  <script type="text/javascript">
    $("#pracBtn").click(function () {
      $(location).attr("href","practice.jsp")
    })
  </script>
  <script src="./layui/layui.js"></script>
  <script>
    layui.use(function(){
      var layer = layui.layer
              ,laydate = layui.laydate
              ,table = layui.table;
      //…

      //do something
    });
  </script>
</html>
